$.getJSON('../mock/xiexue.json', function (data) {
    console.log(data);
    // 1.初始化页面
    console.log();
    // var showPage =
    showPage(data[0].jinri[0]);
    // 2.鼠标mouseover时数据和样式进行改变


});

function showPage(data) {
    console.log(data);
    // 设置初始值
    var pageDatas = `
    <li class="first">
      <div class="p-img">
        <a href="" target="_blank"><img src="${data[0].goods_urls.nowurl}" alt=""></a>
    </div>
    <div class="p-info">
        <div class="info-name"><a href="" target="_blank">${data[0].goods_title} </a></div>
        <div class="info-handle">
            <div class="info-price">${data[0].goods_price} </div>
            <a href="h" class="info-btn" target="_blank">查看详情</a>
        </div>
    </div>
</li>`;
    for (var i = 1; i < data.length; i++) {
        pageDatas += `
        <li>
        <div class="p-img">
            <a href="" target="_blank"><img src="${data[i].goods_urls.nowurl}" alt=""></a>
        </div>
        <div class="p-name"><a href="" target="_blank" title="">${data[i].goods_title} </a></div>
        <div class="p-price">${data[i].goods_price}</div>
    </li> `
    };
    // 设置到页面上
    $('.fgoods-list').html(pageDatas);


}
var page;
function show(data) {
    for (var i = 0; i < data.length; i++) {
        page += `
        <li><img src="${}" alt="">
        <div class="p-name"><a href="#">WMNS Air Jordan 13 aj13 鳄鱼皮纹理 女鞋篮球鞋 -
                AQ1757 004</a></div>
        <div class="p-price">
            ¥1200.00
        </div>
    </li>
        `
    }


}